package io.nutz.nutzsite.module.exam.models;

import java.io.Serializable;
import java.util.Date;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Comment;
import org.nutz.dao.entity.annotation.Default;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.One;
import org.nutz.dao.entity.annotation.Table;

import io.nutz.nutzsite.module.sys.models.User;
		
/**
 * 排考抽题表 exam_exarrange
 * 
 * @author lrw
 * @date 2020-04-08
 */
@Table("exam_exarrange")
public class Exarrange implements Serializable {
	private static final long serialVersionUID = 1L;
	
	@Id
	@Column("id")
@Comment("排考号")
private Integer id;

		@Column("uid")
	@Comment("考生号")
	private String uid;
	    @One(field = "uid")
	    private User user;
		/** 科目 */
	@Column("kmid")
	@Comment("科目")
	private Integer kmid;

		/** 考试号 */
	@Column("ksid")
	@Comment("考试号")
	private String ksid;

		/** 分类题号集合 */
	@Column("paperdata")
	@Comment("试卷数据")
	private String paperdata;

	@Column("ansdata")
	@Comment("答卷数据")
	private String ansdata;
		/** 批次 */
	@Column("pc")
	@Comment("批次")
	@Default("0")
	private Integer pc;

		/** 考场号 */
	@Column("kch")
	@Comment("考场号")
	private String kch;

		/** 指定IP */
	@Column("loginip")
	@Comment("指定IP")
	private String loginip;
    @Column("macaddr")
    @Comment("本机Mac")
    private String macaddr;
		/** 登录IP */
	@Column("loginip2")
	@Comment("登录IP")
	private String loginip2;

		/** 本机mac */
	@Column("loginmac")
	@Comment("本机mac")
	private String loginmac;

		/** 首次进入时间 */
	@Column("signintime")
	@Comment("首次进入时间")
	private Date signintime;

		/** 具体开始时间 */
	@Column("starttime")
	@Comment("具体开始时间")
	private Date starttime;

		/** 具体结束时间 */
	@Column("endtime")
	@Comment("具体结束时间")
	private Date endtime;

		/** 已考时长 */
	@Column("udtime")
	@Comment("已考时长")
	@Default("0")
	private Integer udtime;

		/** 0未考4考试中8正常交卷 */
	@Column("status")
	@Comment("0未考4考试中8正常交卷")
	@Default("0")
	private Integer status;
	
	@Column("jjtime")
	@Comment("交卷时间")
	private Date jjtime;
	
	
	
	@One(field="ksid")
	private Paperdef paperdef;
	
	public Paperdef getPaperdef() {
		return paperdef;
	}

	public void setPaperdef(Paperdef paperdef) {
		this.paperdef = paperdef;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public void setUid(String uid) 
	{
		this.uid = uid;
	}

	public String getUid() 
	{
		return uid;
	}

	public void setKmid(Integer kmid) 
	{
		this.kmid = kmid;
	}

	public Integer getKmid() 
	{
		return kmid;
	}

	public void setKsid(String ksid) 
	{
		this.ksid = ksid;
	}

	public String getKsid() 
	{
		return ksid;
	}

	public void setPaperdata(String paperdata) 
	{
		this.paperdata = paperdata;
	}

	public String getPaperdata() 
	{
		return paperdata;
	}

	public String getAnsdata() {
		return ansdata;
	}

	public void setAnsdata(String ansdata) {
		this.ansdata = ansdata;
	}

	public void setPc(Integer pc) 
	{
		this.pc = pc;
	}

	public Integer getPc() 
	{
		return pc;
	}

	public void setKch(String kch) 
	{
		this.kch = kch;
	}

	public String getKch() 
	{
		return kch;
	}

	public void setLoginip(String loginip) 
	{
		this.loginip = loginip;
	}

	public String getLoginip() 
	{
		return loginip;
	}

	public void setLoginip2(String loginip2) 
	{
		this.loginip2 = loginip2;
	}

	public String getLoginip2() 
	{
		return loginip2;
	}



	public String getLoginmac() {
		return loginmac;
	}

	public void setLoginmac(String loginmac) {
		this.loginmac = loginmac;
	}

	public void setSignintime(Date signintime) 
	{
		this.signintime = signintime;
	}

	public Date getSignintime() 
	{
		return signintime;
	}

	public void setStarttime(Date starttime) 
	{
		this.starttime = starttime;
	}

	public Date getStarttime() 
	{
		return starttime;
	}

	public void setEndtime(Date endtime) 
	{
		this.endtime = endtime;
	}

	public Date getEndtime() 
	{
		return endtime;
	}

	public void setUdtime(Integer udtime) 
	{
		this.udtime = udtime;
	}

	public Integer getUdtime() 
	{
		return udtime;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getJjtime() {
		return jjtime;
	}

	public void setJjtime(Date jjtime) {
		this.jjtime = jjtime;
	}

	public String getMacaddr() {
		return macaddr;
	}

	public void setMacaddr(String macaddr) {
		this.macaddr = macaddr;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}


}
